Piwik\Plugins\GeoIp2\GeoIP2AutoUpdater D

Total Complexity 132
Dependencies 21
Dependents 5
Total lines 665
Lines of code 449
Logical lines of code 301
Comment lines 170
Methods 32
Properties 1

Methods 32

Method Rating Maintainability Complexity Lines of code
unzipDownloadedFile()
C
31 27 101
performRedundantDbChecks()
A
49 8 28
checkGeoIPUpdateUrl()
A
52 8 22
downloadFile()
S
48 6 29
setUpdaterOptions()
S
53 6 20
update()
S
51 5 26
__construct()
S
53 5 23
renameAnyExtraGeolocationDatabases()
S
56 5 17
checkForSupportedArchiveType()
S
65 6 8
updateDbIpUrlOption()
S
61 5 12
getGeoIPUrlExtension()
S
57 4 17
fetchPaidDbIpUrl()
S
59 4 14
getZippedFilenameToDownloadTo()
S
59 4 12
getMissingDatabases()
S
61 4 12
isAtLeastOneGeoIpDbOutOfDate()
S
61 4 11
getTemporaryFolder()
S
62 4 10
getPreviousScheduledTime()
S
64 3 9
isUpdaterSetup()
S
70 3 6
getOldAndNewPathsForBrokenDb()
S
67 2 8
getLastRunTime()
S
74 2 4
getConfiguredUrls()
S
68 2 7
getRescheduledTime()
S
69 2 7
setUpdaterOptionsFromUrl()
S
66 2 7
getSchedulePeriod()
S
69 2 7
getConfiguredUrl()
S
67 2 7
getNextRunTime()
S
71 1 5
performUpdate()
S
75 1 4
getDbIpUrlWithLatestDate()
S
74 1 4
isDbIpUrl()
S
78 1 3
isPaidDbIpUrl()
S
78 1 3
fetchUrl()
S
80 1 3
removeDateFromUrl()
S
78 1 3